package com.example.king.ffmpegexample;

public class NativeH264Android {

    static {
        System.loadLibrary("avcodec-57");
        System.loadLibrary("avdevice-57");
        System.loadLibrary("avfilter-6");
        System.loadLibrary("avformat-57");
        System.loadLibrary("avutil-55");
        System.loadLibrary("postproc-54");
        System.loadLibrary("swresample-2");
        System.loadLibrary("swscale-4");
        System.loadLibrary("h264android");
    }

    public NativeH264Android(String outputFilePath) {
        init(outputFilePath);
    }

    public native void init(String outputFilePath);

    public native int decodeH264ToYuv(byte[] in, int len);

    public native void release();
}
